<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>安装</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="__STATIC__/res/layui/css/layui.css" media="all">
</head>
<body>
<div class="layui-container">
    <div class="layui-row">
        <div class="layui-col-md12">
            {include file='index/header'}
            <div class="environment">
                <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
                    <legend>安装</legend>
                </fieldset>
                <blockquote class="layui-elem-quote {if !$installFlag}layui-quote-nm{/if}">
                    {$msg}
                </blockquote>
            </div>

            <div>
                {if $installFlag}
                    <button type="button" class="layui-btn login">登录后台</button>
                {else/}
                    <button type="button" class="layui-btn layui-btn-danger">{$msg}</button>
                {/if}
            </div>
        </div>
    </div>
    {include file='index/footer'}
</div>

<script src="__STATIC__/res/layui/layui.js"></script>
<script>
    var LOGIN_URL='{:url("platform/login/index")}'
    layui.config({
        base: '__STATIC__/res/' //静态资源所在路径
    }).use(['index'],function(){
        var $ = layui.$;
        $('.login').click(function(){
            location.href=LOGIN_URL
        })
    });
</script>
</body>
</html>